<?php if ($pager->haveToPaginate()): ?>
	<a href="<?php echo url_for(array('sf_route' => 'categoria_show_page', 'sf_subject' => $categoria_actual, 'page' => 1)); ?>">
		<img src="/images/first.png" alt="First page" title="First page" />
	</a>
	<a href="<?php echo url_for(array('sf_route' => 'categoria_show_page', 'sf_subject' => $categoria_actual, 'page' => $pager->getPreviousPage())); ?>">
		<img src="/images/previous.png" alt="Previous page" title="Previous page" />
	</a>
	<?php foreach ($pager->getLinks() as $page):
		if ($page == $pager->getPage()):
			echo $page;
		else: ?>
			<a href="<?php echo url_for(array('sf_route' => 'categoria_show_page', 'sf_subject' => $categoria_actual, 'page' => $page)); ?>">
				<?php echo $page; ?>
			</a>
		<?php endif; ?>
	<?php endforeach; ?>
	<a href="<?php echo url_for(array('sf_route' => 'categoria_show_page', 'sf_subject' => $categoria_actual, 'page' => $pager->getNextPage())); ?>">
		<img src="/images/next.png" alt="Next page" title="Next page" />
    </a>
	<a href="<?php echo url_for(array('sf_route' => 'categoria_show_page', 'sf_subject' => $categoria_actual, 'page' => $pager->getLastPage())); ?>">
 		<img src="/images/last.png" alt="Last page" title="Last page" />
    </a>
<?php endif; ?>